package main

import (
	"fmt"
)

type People struct {
	name   string
	age    int
	weight int
}

type Student struct {
	People
	specialty string
}

//匿名结构体,匿名字段
func main() {
	//liming := Student{People{"liming", 18, 183}, "None Specialty"}
	liming := Student{
		People: People{
			name:   "zhangsan",
			age:    12,
			weight: 180,
		},
		specialty: "None Specialty",
	}
	fmt.Println("liming:", liming)
}
